package week6;

public class HardDisk {
    private int amount;
    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getAmount() {
        return amount;
    }
    public static void main(String[] ages){
        HardDisk hardDisk =new HardDisk();
        hardDisk.setAmount(200);
        System.out.println("disk已设置为"+ hardDisk.getAmount());
    }
}
